//mock/mock.js
import Mock from 'mockjs'

function loginMock () {
    return Mock.mock({
        "userName": "@cname",
        "userId": "@integer(10000,99999)",
        "passward": /[a-z][A-Z][0-9][a-z][A-Z][0-9][a-z][A-Z][0-9]/,
        'token':'@string(10)'
    })
}

function helloMock() {
    return Mock.mock({
        'message':'hello'
    })
}
export {loginMock ,helloMock }
